﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ESoft.RabbitMQ
{
    /// <summary>
    /// 路由绑定
    /// </summary>
    [AttributeUsage(AttributeTargets.Class, Inherited = true, AllowMultiple = false)]
    public class RabbitBindingAttribute : Attribute
    {
        /// <summary>
        /// 交换机
        /// </summary>
        public string Exchange { get; set; } = "topic";

        /// <summary>
        /// 队列名称
        /// </summary>
        public string QueueName { get; set; }

        /// <summary>
        /// 路由键
        /// </summary>
        public string RouteKey { get; set; }
    }
}
